﻿//-----------------------------------------------------------------------
// <copyright file="SiteRuleFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.ScoreModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public static class SiteRuleFactory
    {
        public static SiteRule CreateSiteRule(
                                    string name,
                                    int scoreChange,
                                    int maxScoreChange,
                                    int experienceChange,
                                    int maxExperienceChange,
                                    int livenessChange,
                                    int maxLivenessChange,
                                    DateTime editTime,
                                    string editUser)
        {
            SiteRule siteRule = new SiteRule();
            siteRule.EditTime = editTime;
            siteRule.EditUser = editUser;
            siteRule.ExperienceChange = experienceChange;
            siteRule.LivenessChange = livenessChange;
            siteRule.MaxExperienceChange = maxExperienceChange;
            siteRule.MaxLivenessChange = maxLivenessChange;
            siteRule.MaxScoreChange = maxScoreChange;
            siteRule.Name = name;
            siteRule.ScoreChange = scoreChange;
            siteRule.CreateTime = DateTime.Now;

            return siteRule;
        }
    }
}
